/*! \file gettext.h
    \brief GNU Gettext
    
    This file includes GNU Gettext headers
    and defines macroses to use it.
 */
/*
    Copyright (C) 2021 Ivan Polyakov

    This file is part of fltube.

    fltube is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    fltube is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef FLTUBE_GETTEXT_H_ENTRY
#define FLTUBE_GETTEXT_H_ENTRY

#include <libintl.h>
#include <locale.h>

/*!
 *  \brief Calls gettext to translate \a STR.
 *  \param STR string to translate.
 *  \return gettext() result.
 */
#define _(STR) gettext(STR)

/*!
 *  \brief Puts \a STR without translating.
 *  \param STR string to put.
 *  \return Original \a STR.
 */
#define N_(STR) (STR)

#endif /* FLTUBE_GETTEXT_H_ENTRY */
